import axios from './http'
import qs from 'qs'
import base from './base'

const home = {
  getSwiper (params) {
    return axios.post(`${base.pro}/api/communal/carousel`, qs.stringify(params))
  },
  getRecommend (params) {
    return axios.post(`${base.pro}/api/index/recommend`, qs.stringify(params))
  },
  getFooter (params) {
    return axios.post(`${base.pro}/api/communal/footInfo`, qs.stringify(params))
  }
}
export default home
